#
# Be sure to run `pod lib lint ZLYoYoIM.podspec' to ensure this is a
# valid spec before subm itting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ZLYoYoIM'
  s.version          = '1.0.0'
  s.summary          = '网易云信的UI组件'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
'对网易云信进行了一次封装，在该平台的基础上进行定制化加装'
                       DESC

  s.homepage         = 'https://gitee.com/itzhaolei/ZLYoYoIM'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'itzhaolei' => 'itzhaolei@foxmail.com' }
  s.source           = { :git => 'https://gitee.com/itzhaolei/ZLYoYoIM.git', :tag => s.version }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.3'

  s.source_files = 'ZLYoYoIM/Classes/**/*'
  
#    s.resource_bundles = {
#        'ZLYoYoIM' => ['ZLYoYoIM/Assets/**/*']
#    }
    
    s.subspec 'A-IM' do |ss|
          ss.source_files = 'ZLYoYoIM/Classes/A-IM/*.{h,m}'
          
          ss.subspec 'Resources' do |sss|
              sss.source_files = 'ZLYoYoIM/Classes/A-IM/Resources/*.{h,m}'
              sss.resource_bundles = {
                  'ZLYoYoIM' => ['ZLYoYoIM/Assets/A-IM/**/*']
              }
          end
          
          ss.dependency 'NIMKit/Full', '~> 3.2.1'
          ss.dependency 'ZLNavigationBar', '~> 1.0.6'
          ss.dependency 'SDWebImage'
    end
    
    s.subspec 'B-AudioVideoCall' do |ss|
          ss.source_files = 'ZLYoYoIM/Classes/B-AudioVideoCall/*.{h,m}'
          
          ss.subspec 'Resources' do |sss|
              sss.source_files = 'ZLYoYoIM/Classes/B-AudioVideoCall/Resources/*.{h,m,png}'
          end
    end
    
end
